﻿using System;
using System.Collections;
using System.Collections.Generic;

public abstract class EffectFactorBase 
{
	//该影响的ID
	public string Factor { get; protected set; }
	public string Tag { get; protected set; }


	public bool IsObsolete { get; protected set; } = false;
	public int Priority { get; protected set; }

	virtual public void StartEffect(RoleAtrEntity role) { }
	virtual public void EndEffect(RoleAtrEntity role) => IsObsolete = true;
	virtual public void Tick(RoleAtrEntity role, float deltaTime) { if (IsObsolete) return; }
	virtual public void ReFresh() { }
}
